﻿using Common.Entitys;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Common.ViewModels
{
    public class FtpCarLog : LogEntity
    {
        public string CarName = "";

        public override string GetLogFiledName()
        {
            return $"小车{CarName}日志.txt";
        }

        public FtpCarLog(string message)
        {
            Content = message;
        }

        public static implicit operator FtpCarLog(string message)
        {
            return new FtpCarLog(message);
        }
    }

    public class BoatLog : LogEntity
    {
        public string Name = "";

        public override string GetLogFiledName()
        {
            return $"摆渡{Name}日志.txt";
        }

        public BoatLog(string message)
        {
            Content = message;
        }

        public static implicit operator BoatLog(string message)
        {
            return new BoatLog(message);
        }
    }
}
